/*
Adept MobileRobots Robotics Interface for Applications (ARIA)
Copyright (C) 2004-2005 ActivMedia Robotics LLC
Copyright (C) 2006-2010 MobileRobots Inc.
Copyright (C) 2011-2015 Adept Technology, Inc.
Copyright (C) 2016-2018 Omron Adept Technologies, Inc.

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

If you wish to redistribute ARIA under different terms, contact 
Adept MobileRobots for information about a commercial version of ARIA at 
robots@mobilerobots.com or 
Adept MobileRobots, 10 Columbia Drive, Amherst, NH 03031; +1-603-881-7960
*/
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.8
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.mobilerobots.Aria;

public class ArSensorReading {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  public ArSensorReading(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(ArSensorReading obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        AriaJavaJNI.delete_ArSensorReading(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public ArSensorReading(double xPos, double yPos, double thPos) {
    this(AriaJavaJNI.new_ArSensorReading__SWIG_0(xPos, yPos, thPos), true);
  }

  public ArSensorReading(double xPos, double yPos) {
    this(AriaJavaJNI.new_ArSensorReading__SWIG_1(xPos, yPos), true);
  }

  public ArSensorReading(double xPos) {
    this(AriaJavaJNI.new_ArSensorReading__SWIG_2(xPos), true);
  }

  public ArSensorReading() {
    this(AriaJavaJNI.new_ArSensorReading__SWIG_3(), true);
  }

  public ArSensorReading(ArSensorReading reading) {
    this(AriaJavaJNI.new_ArSensorReading__SWIG_4(ArSensorReading.getCPtr(reading), reading), true);
  }

  public long getRange() {
    return AriaJavaJNI.ArSensorReading_getRange(swigCPtr, this);
  }

  public boolean isNew(long counter) {
    return AriaJavaJNI.ArSensorReading_isNew(swigCPtr, this, counter);
  }

  public double getX() {
    return AriaJavaJNI.ArSensorReading_getX(swigCPtr, this);
  }

  public double getY() {
    return AriaJavaJNI.ArSensorReading_getY(swigCPtr, this);
  }

  public ArPose getPose() {
    return new ArPose(AriaJavaJNI.ArSensorReading_getPose(swigCPtr, this), true);
  }

  public double getLocalX() {
    return AriaJavaJNI.ArSensorReading_getLocalX(swigCPtr, this);
  }

  public double getLocalY() {
    return AriaJavaJNI.ArSensorReading_getLocalY(swigCPtr, this);
  }

  public ArPose getLocalPose() {
    return new ArPose(AriaJavaJNI.ArSensorReading_getLocalPose(swigCPtr, this), true);
  }

  public ArPose getPoseTaken() {
    return new ArPose(AriaJavaJNI.ArSensorReading_getPoseTaken(swigCPtr, this), true);
  }

  public ArPose getEncoderPoseTaken() {
    return new ArPose(AriaJavaJNI.ArSensorReading_getEncoderPoseTaken(swigCPtr, this), true);
  }

  public double getSensorX() {
    return AriaJavaJNI.ArSensorReading_getSensorX(swigCPtr, this);
  }

  public double getSensorY() {
    return AriaJavaJNI.ArSensorReading_getSensorY(swigCPtr, this);
  }

  public double getSensorTh() {
    return AriaJavaJNI.ArSensorReading_getSensorTh(swigCPtr, this);
  }

  public boolean getIgnoreThisReading() {
    return AriaJavaJNI.ArSensorReading_getIgnoreThisReading(swigCPtr, this);
  }

  public int getExtraInt() {
    return AriaJavaJNI.ArSensorReading_getExtraInt(swigCPtr, this);
  }

  public ArPose getSensorPosition() {
    return new ArPose(AriaJavaJNI.ArSensorReading_getSensorPosition(swigCPtr, this), true);
  }

  public double getSensorDX() {
    return AriaJavaJNI.ArSensorReading_getSensorDX(swigCPtr, this);
  }

  public double getSensorDY() {
    return AriaJavaJNI.ArSensorReading_getSensorDY(swigCPtr, this);
  }

  public double getXTaken() {
    return AriaJavaJNI.ArSensorReading_getXTaken(swigCPtr, this);
  }

  public double getYTaken() {
    return AriaJavaJNI.ArSensorReading_getYTaken(swigCPtr, this);
  }

  public double getThTaken() {
    return AriaJavaJNI.ArSensorReading_getThTaken(swigCPtr, this);
  }

  public long getCounterTaken() {
    return AriaJavaJNI.ArSensorReading_getCounterTaken(swigCPtr, this);
  }

  public ArTime getTimeTaken() {
    return new ArTime(AriaJavaJNI.ArSensorReading_getTimeTaken(swigCPtr, this), true);
  }

  public void newData(int range, ArPose robotPose, ArPose encoderPose, ArTransform trans, long counter, ArTime timeTaken, boolean ignoreThisReading, int extraInt) {
    AriaJavaJNI.ArSensorReading_newData__SWIG_0(swigCPtr, this, range, ArPose.getCPtr(robotPose), robotPose, ArPose.getCPtr(encoderPose), encoderPose, ArTransform.getCPtr(trans), trans, counter, ArTime.getCPtr(timeTaken), timeTaken, ignoreThisReading, extraInt);
  }

  public void newData(int range, ArPose robotPose, ArPose encoderPose, ArTransform trans, long counter, ArTime timeTaken, boolean ignoreThisReading) {
    AriaJavaJNI.ArSensorReading_newData__SWIG_1(swigCPtr, this, range, ArPose.getCPtr(robotPose), robotPose, ArPose.getCPtr(encoderPose), encoderPose, ArTransform.getCPtr(trans), trans, counter, ArTime.getCPtr(timeTaken), timeTaken, ignoreThisReading);
  }

  public void newData(int range, ArPose robotPose, ArPose encoderPose, ArTransform trans, long counter, ArTime timeTaken) {
    AriaJavaJNI.ArSensorReading_newData__SWIG_2(swigCPtr, this, range, ArPose.getCPtr(robotPose), robotPose, ArPose.getCPtr(encoderPose), encoderPose, ArTransform.getCPtr(trans), trans, counter, ArTime.getCPtr(timeTaken), timeTaken);
  }

  public void newData(int sx, int sy, ArPose robotPose, ArPose encoderPose, ArTransform trans, long counter, ArTime timeTaken, boolean ignoreThisReading, int extraInt) {
    AriaJavaJNI.ArSensorReading_newData__SWIG_3(swigCPtr, this, sx, sy, ArPose.getCPtr(robotPose), robotPose, ArPose.getCPtr(encoderPose), encoderPose, ArTransform.getCPtr(trans), trans, counter, ArTime.getCPtr(timeTaken), timeTaken, ignoreThisReading, extraInt);
  }

  public void newData(int sx, int sy, ArPose robotPose, ArPose encoderPose, ArTransform trans, long counter, ArTime timeTaken, boolean ignoreThisReading) {
    AriaJavaJNI.ArSensorReading_newData__SWIG_4(swigCPtr, this, sx, sy, ArPose.getCPtr(robotPose), robotPose, ArPose.getCPtr(encoderPose), encoderPose, ArTransform.getCPtr(trans), trans, counter, ArTime.getCPtr(timeTaken), timeTaken, ignoreThisReading);
  }

  public void newData(int sx, int sy, ArPose robotPose, ArPose encoderPose, ArTransform trans, long counter, ArTime timeTaken) {
    AriaJavaJNI.ArSensorReading_newData__SWIG_5(swigCPtr, this, sx, sy, ArPose.getCPtr(robotPose), robotPose, ArPose.getCPtr(encoderPose), encoderPose, ArTransform.getCPtr(trans), trans, counter, ArTime.getCPtr(timeTaken), timeTaken);
  }

  public void resetSensorPosition(double xPos, double yPos, double thPos, boolean forceComputation) {
    AriaJavaJNI.ArSensorReading_resetSensorPosition__SWIG_0(swigCPtr, this, xPos, yPos, thPos, forceComputation);
  }

  public void resetSensorPosition(double xPos, double yPos, double thPos) {
    AriaJavaJNI.ArSensorReading_resetSensorPosition__SWIG_1(swigCPtr, this, xPos, yPos, thPos);
  }

  public void setIgnoreThisReading(boolean ignoreThisReading) {
    AriaJavaJNI.ArSensorReading_setIgnoreThisReading(swigCPtr, this, ignoreThisReading);
  }

  public void setExtraInt(int extraInt) {
    AriaJavaJNI.ArSensorReading_setExtraInt(swigCPtr, this, extraInt);
  }

  public void applyTransform(ArTransform trans) {
    AriaJavaJNI.ArSensorReading_applyTransform(swigCPtr, this, ArTransform.getCPtr(trans), trans);
  }

  public void applyEncoderTransform(ArTransform trans) {
    AriaJavaJNI.ArSensorReading_applyEncoderTransform(swigCPtr, this, ArTransform.getCPtr(trans), trans);
  }

  public boolean getAdjusted() {
    return AriaJavaJNI.ArSensorReading_getAdjusted(swigCPtr, this);
  }

  public void setAdjusted(boolean adjusted) {
    AriaJavaJNI.ArSensorReading_setAdjusted(swigCPtr, this, adjusted);
  }

}
